package org.neuedu.chapter09_0701.practice08;

public class Practice08 {

    public static boolean getNum(int num) {
        StringBuilder sb = new StringBuilder(num+"");
        String str1 = sb.toString();
        String str2 = sb.reverse().toString();
        return str1.equals(str2);
    }

    public static void main(String[] args) {
        boolean num = getNum(123321);
        System.out.println(num);
    }
}
